home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.misc
- Path: dmocc2.on.bell.ca!bc2cep!news
- From: Eric Marc Loebenberg <loebenbe@qc.bell.ca>
- Subject: Toolbar button problem
- X-Nntp-Posting-Host: cmocft.qc.bell.ca
- Content-Type: text/plain; charset=iso-8859-1
- Message-ID: <31779169.36D3@qc.bell.ca>
- Sender: news@on.bell.ca (news admin)
- Content-Transfer-Encoding: 8bit
- Organization: Bell Sygma
- Mime-Version: 1.0
- Date: Fri, 19 Apr 1996 13:13:13 GMT
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- I have a toolbar with buttons that have the same ids as menu
- items.
-
- Just before I execute a function, I want to enable a specific button.
- The button and menu item have a ON_UPDATE_COMMAND_UI callback.
-
- If I could get this routine called, it might enable the button.
- I tried CWnd::UpdateDialogControls but no go. I also tried to get the
- window of the button but this does not work since my command ID is
- greater than 8000x and getting a window from an id requires an int.
-
- Can anyone give me a hand? Thanks.
-
- ***************************************************************
- Eric Marc Loebenberg loebenbe@qc.bell.ca
- Bell Sygma Inc. or: loebenbe@post.sygma.net
- 700 de la GauchetiΦre West Tel: 514-870-0465
- Room 14W1 Fax: 514-870-7583
- Montreal, Quebec, Canada
- H3B 4L1
-